"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
    function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
    var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
    var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
    var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
    var _, done = false;
    for (var i = decorators.length - 1; i >= 0; i--) {
        var context = {};
        for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
        for (var p in contextIn.access) context.access[p] = contextIn.access[p];
        context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
        var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
        if (kind === "accessor") {
            if (result === void 0) continue;
            if (result === null || typeof result !== "object") throw new TypeError("Object expected");
            if (_ = accept(result.get)) descriptor.get = _;
            if (_ = accept(result.set)) descriptor.set = _;
            if (_ = accept(result.init)) initializers.unshift(_);
        }
        else if (_ = accept(result)) {
            if (kind === "field") initializers.unshift(_);
            else descriptor[key] = _;
        }
    }
    if (target) Object.defineProperty(target, contextIn.name, descriptor);
    done = true;
};
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
    var useValue = arguments.length > 2;
    for (var i = 0; i < initializers.length; i++) {
        value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
    }
    return useValue ? value : void 0;
};
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
    if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
    return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OrganizationType = void 0;
var common_type_1 = require("@/common/dto/common.type");
var orgImage_output_1 = require("@/modules/orgImage/dto/orgImage.output");
var graphql_1 = require("@nestjs/graphql");
var OrganizationType = function () {
    var _classDecorators = [(0, graphql_1.ObjectType)()];
    var _classDescriptor;
    var _classExtraInitializers = [];
    var _classThis;
    var _classSuper = common_type_1.CommonType;
    var _businessLicense_decorators;
    var _businessLicense_initializers = [];
    var _businessLicense_extraInitializers = [];
    var _identityCardFrontImg_decorators;
    var _identityCardFrontImg_initializers = [];
    var _identityCardFrontImg_extraInitializers = [];
    var _identityCardBackImg_decorators;
    var _identityCardBackImg_initializers = [];
    var _identityCardBackImg_extraInitializers = [];
    var _tags_decorators;
    var _tags_initializers = [];
    var _tags_extraInitializers = [];
    var _description_decorators;
    var _description_initializers = [];
    var _description_extraInitializers = [];
    var _name_decorators;
    var _name_initializers = [];
    var _name_extraInitializers = [];
    var _logo_decorators;
    var _logo_initializers = [];
    var _logo_extraInitializers = [];
    var _longitude_decorators;
    var _longitude_initializers = [];
    var _longitude_extraInitializers = [];
    var _latitude_decorators;
    var _latitude_initializers = [];
    var _latitude_extraInitializers = [];
    var _address_decorators;
    var _address_initializers = [];
    var _address_extraInitializers = [];
    var _tel_decorators;
    var _tel_initializers = [];
    var _tel_extraInitializers = [];
    var _orgFrontImg_decorators;
    var _orgFrontImg_initializers = [];
    var _orgFrontImg_extraInitializers = [];
    var _orgRoomImg_decorators;
    var _orgRoomImg_initializers = [];
    var _orgRoomImg_extraInitializers = [];
    var _orgOtherImg_decorators;
    var _orgOtherImg_initializers = [];
    var _orgOtherImg_extraInitializers = [];
    var OrganizationType = _classThis = /** @class */ (function (_super) {
        __extends(OrganizationType_1, _super);
        function OrganizationType_1() {
            var _this = _super !== null && _super.apply(this, arguments) || this;
            _this.businessLicense = __runInitializers(_this, _businessLicense_initializers, void 0);
            _this.identityCardFrontImg = (__runInitializers(_this, _businessLicense_extraInitializers), __runInitializers(_this, _identityCardFrontImg_initializers, void 0));
            _this.identityCardBackImg = (__runInitializers(_this, _identityCardFrontImg_extraInitializers), __runInitializers(_this, _identityCardBackImg_initializers, void 0));
            _this.tags = (__runInitializers(_this, _identityCardBackImg_extraInitializers), __runInitializers(_this, _tags_initializers, void 0));
            _this.description = (__runInitializers(_this, _tags_extraInitializers), __runInitializers(_this, _description_initializers, void 0));
            _this.name = (__runInitializers(_this, _description_extraInitializers), __runInitializers(_this, _name_initializers, void 0));
            _this.logo = (__runInitializers(_this, _name_extraInitializers), __runInitializers(_this, _logo_initializers, void 0));
            _this.longitude = (__runInitializers(_this, _logo_extraInitializers), __runInitializers(_this, _longitude_initializers, void 0));
            _this.latitude = (__runInitializers(_this, _longitude_extraInitializers), __runInitializers(_this, _latitude_initializers, void 0));
            _this.address = (__runInitializers(_this, _latitude_extraInitializers), __runInitializers(_this, _address_initializers, void 0));
            _this.tel = (__runInitializers(_this, _address_extraInitializers), __runInitializers(_this, _tel_initializers, void 0));
            _this.orgFrontImg = (__runInitializers(_this, _tel_extraInitializers), __runInitializers(_this, _orgFrontImg_initializers, void 0));
            _this.orgRoomImg = (__runInitializers(_this, _orgFrontImg_extraInitializers), __runInitializers(_this, _orgRoomImg_initializers, void 0));
            _this.orgOtherImg = (__runInitializers(_this, _orgRoomImg_extraInitializers), __runInitializers(_this, _orgOtherImg_initializers, void 0));
            __runInitializers(_this, _orgOtherImg_extraInitializers);
            return _this;
        }
        return OrganizationType_1;
    }(_classSuper));
    __setFunctionName(_classThis, "OrganizationType");
    (function () {
        var _a;
        var _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
        _businessLicense_decorators = [(0, graphql_1.Field)({
                description: '营业执照',
            })];
        _identityCardFrontImg_decorators = [(0, graphql_1.Field)({
                description: '法人身份证正面',
            })];
        _identityCardBackImg_decorators = [(0, graphql_1.Field)({
                description: '法人身份证反面',
            })];
        _tags_decorators = [(0, graphql_1.Field)({
                description: '标签以，隔开',
                nullable: true,
            })];
        _description_decorators = [(0, graphql_1.Field)({
                description: '简介',
                nullable: true,
            })];
        _name_decorators = [(0, graphql_1.Field)({
                description: '机构名',
                nullable: true,
            })];
        _logo_decorators = [(0, graphql_1.Field)({
                description: 'logo',
                nullable: true,
            })];
        _longitude_decorators = [(0, graphql_1.Field)({
                description: '经度',
                nullable: true,
            })];
        _latitude_decorators = [(0, graphql_1.Field)({
                description: '纬度',
                nullable: true,
            })];
        _address_decorators = [(0, graphql_1.Field)({
                description: '地址',
                nullable: true,
            })];
        _tel_decorators = [(0, graphql_1.Field)({
                description: '电话',
                nullable: true,
            })];
        _orgFrontImg_decorators = [(0, graphql_1.Field)(function () { return [orgImage_output_1.OrgImageType]; }, { nullable: true, description: '封面图' })];
        _orgRoomImg_decorators = [(0, graphql_1.Field)(function () { return [orgImage_output_1.OrgImageType]; }, { nullable: true, description: '室内图' })];
        _orgOtherImg_decorators = [(0, graphql_1.Field)(function () { return [orgImage_output_1.OrgImageType]; }, { nullable: true, description: '其他图片' })];
        __esDecorate(null, null, _businessLicense_decorators, { kind: "field", name: "businessLicense", static: false, private: false, access: { has: function (obj) { return "businessLicense" in obj; }, get: function (obj) { return obj.businessLicense; }, set: function (obj, value) { obj.businessLicense = value; } }, metadata: _metadata }, _businessLicense_initializers, _businessLicense_extraInitializers);
        __esDecorate(null, null, _identityCardFrontImg_decorators, { kind: "field", name: "identityCardFrontImg", static: false, private: false, access: { has: function (obj) { return "identityCardFrontImg" in obj; }, get: function (obj) { return obj.identityCardFrontImg; }, set: function (obj, value) { obj.identityCardFrontImg = value; } }, metadata: _metadata }, _identityCardFrontImg_initializers, _identityCardFrontImg_extraInitializers);
        __esDecorate(null, null, _identityCardBackImg_decorators, { kind: "field", name: "identityCardBackImg", static: false, private: false, access: { has: function (obj) { return "identityCardBackImg" in obj; }, get: function (obj) { return obj.identityCardBackImg; }, set: function (obj, value) { obj.identityCardBackImg = value; } }, metadata: _metadata }, _identityCardBackImg_initializers, _identityCardBackImg_extraInitializers);
        __esDecorate(null, null, _tags_decorators, { kind: "field", name: "tags", static: false, private: false, access: { has: function (obj) { return "tags" in obj; }, get: function (obj) { return obj.tags; }, set: function (obj, value) { obj.tags = value; } }, metadata: _metadata }, _tags_initializers, _tags_extraInitializers);
        __esDecorate(null, null, _description_decorators, { kind: "field", name: "description", static: false, private: false, access: { has: function (obj) { return "description" in obj; }, get: function (obj) { return obj.description; }, set: function (obj, value) { obj.description = value; } }, metadata: _metadata }, _description_initializers, _description_extraInitializers);
        __esDecorate(null, null, _name_decorators, { kind: "field", name: "name", static: false, private: false, access: { has: function (obj) { return "name" in obj; }, get: function (obj) { return obj.name; }, set: function (obj, value) { obj.name = value; } }, metadata: _metadata }, _name_initializers, _name_extraInitializers);
        __esDecorate(null, null, _logo_decorators, { kind: "field", name: "logo", static: false, private: false, access: { has: function (obj) { return "logo" in obj; }, get: function (obj) { return obj.logo; }, set: function (obj, value) { obj.logo = value; } }, metadata: _metadata }, _logo_initializers, _logo_extraInitializers);
        __esDecorate(null, null, _longitude_decorators, { kind: "field", name: "longitude", static: false, private: false, access: { has: function (obj) { return "longitude" in obj; }, get: function (obj) { return obj.longitude; }, set: function (obj, value) { obj.longitude = value; } }, metadata: _metadata }, _longitude_initializers, _longitude_extraInitializers);
        __esDecorate(null, null, _latitude_decorators, { kind: "field", name: "latitude", static: false, private: false, access: { has: function (obj) { return "latitude" in obj; }, get: function (obj) { return obj.latitude; }, set: function (obj, value) { obj.latitude = value; } }, metadata: _metadata }, _latitude_initializers, _latitude_extraInitializers);
        __esDecorate(null, null, _address_decorators, { kind: "field", name: "address", static: false, private: false, access: { has: function (obj) { return "address" in obj; }, get: function (obj) { return obj.address; }, set: function (obj, value) { obj.address = value; } }, metadata: _metadata }, _address_initializers, _address_extraInitializers);
        __esDecorate(null, null, _tel_decorators, { kind: "field", name: "tel", static: false, private: false, access: { has: function (obj) { return "tel" in obj; }, get: function (obj) { return obj.tel; }, set: function (obj, value) { obj.tel = value; } }, metadata: _metadata }, _tel_initializers, _tel_extraInitializers);
        __esDecorate(null, null, _orgFrontImg_decorators, { kind: "field", name: "orgFrontImg", static: false, private: false, access: { has: function (obj) { return "orgFrontImg" in obj; }, get: function (obj) { return obj.orgFrontImg; }, set: function (obj, value) { obj.orgFrontImg = value; } }, metadata: _metadata }, _orgFrontImg_initializers, _orgFrontImg_extraInitializers);
        __esDecorate(null, null, _orgRoomImg_decorators, { kind: "field", name: "orgRoomImg", static: false, private: false, access: { has: function (obj) { return "orgRoomImg" in obj; }, get: function (obj) { return obj.orgRoomImg; }, set: function (obj, value) { obj.orgRoomImg = value; } }, metadata: _metadata }, _orgRoomImg_initializers, _orgRoomImg_extraInitializers);
        __esDecorate(null, null, _orgOtherImg_decorators, { kind: "field", name: "orgOtherImg", static: false, private: false, access: { has: function (obj) { return "orgOtherImg" in obj; }, get: function (obj) { return obj.orgOtherImg; }, set: function (obj, value) { obj.orgOtherImg = value; } }, metadata: _metadata }, _orgOtherImg_initializers, _orgOtherImg_extraInitializers);
        __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
        OrganizationType = _classThis = _classDescriptor.value;
        if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
        __runInitializers(_classThis, _classExtraInitializers);
    })();
    return OrganizationType = _classThis;
}();
exports.OrganizationType = OrganizationType;
